Welcome![Sign In][Sign Up]
Location:
Search - how to establish socket connention through java in

Search list

[JSP/Javachengxu

Description: 服务器与客户间通过套接口Socket(TCP)连接。在java中使用套接口相当简单,Java API为处理套接口的通信提供了一个类java.net.Socket.,使得编写网络应用程序相对容易.服务器采用多线程以满足多用户的请求,通过JDBC与后台数据库连接,并通过创建一个ServerSocket对象来监听来自客户的连接请求,默认端口为8080,然后无限循环调用accept()方法接受客户程序的连接-Between server and client through the socket Socket (TCP) connection. In java using a very simple set of interfaces, Java API to handle socket communications category provides a java.net.Socket., Makes the preparation of web applications is relatively easy. Server used to meet the needs of multi-threaded multi-user request, through the JDBC database connection with the background and, through the creation of a ServerSocket object to monitor connection requests from clients, the default port is 8080, and then infinite loop calling accept () method to accept client connection
Platform: | Size: 164864 | Author: 达瓦 | Hits:

CodeBus www.codebus.net